home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / linuxcon.000 / linuxcon / linuxconf-1.6 / userconf / internal.h < prev    next >
C/C++ Source or Header  |  1996-07-21  |  1KB  |  63 lines

  1. #pragma interface
  2. #ifndef INTERNAL_H
  3. #define INTERNAL_H
  4.  
  5. #ifndef MISC_H
  6.     #include "../misc/misc.h"
  7. #endif
  8.  
  9. class USERCONF_HELP_FILE: public HELP_FILE{
  10.     /*~PROTOBEG~ USERCONF_HELP_FILE */
  11. public:
  12.     USERCONF_HELP_FILE (const char *fname);
  13.     /*~PROTOEND~ USERCONF_HELP_FILE */
  14. };
  15.  
  16. class PASSWD_VALID{
  17. public:
  18.     int minlen;
  19.     int minnonalpha;
  20.     /*~PROTOBEG~ PASSWD_VALID */
  21. public:
  22.     PASSWD_VALID (void);
  23.     void edit (void);
  24.     void write (void);
  25.     /*~PROTOEND~ PASSWD_VALID */
  26. };
  27.  
  28. class SHADOW: public ARRAY_OBJ{
  29.     friend class SHADOWS;
  30.     friend class USER;
  31.     SSTRING name;
  32.     SSTRING passwd;
  33.     int last;
  34.     int may;
  35.     int must;
  36.     int warn;
  37.     int expire;
  38.     int disable;
  39.     SSTRING reserved;
  40.     /*~PROTOBEG~ SHADOW */
  41. public:
  42.     SHADOW (const char *line);
  43.     SHADOW (void);
  44.     const char *getpwd (void);
  45.     void write (FILE *fout);
  46.     /*~PROTOEND~ SHADOW */
  47. };
  48.  
  49. class SHADOWS: public ARRAY{
  50.     /*~PROTOBEG~ SHADOWS */
  51. public:
  52.     SHADOWS (void);
  53.     SHADOW *getitem (const char *name);
  54.     SHADOW *getitem (int no);
  55.     int write (void);
  56.     /*~PROTOEND~ SHADOWS */
  57. };
  58.  
  59.  
  60. #endif
  61.  
  62.  
  63.